package com.vr.xuecheng.feign.client;

import com.vr.xuecheng.feign.dto.TeachPlanOfFeignDTO;
import com.vr.xuecheng.feign.fallback.ContentFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author hzh
 * @date 2025/03/30
 * 内容服务的feign接口
 */
@FeignClient(
        name = "xuecheng-plus-content-service",
        path = "/content",
        fallbackFactory = ContentFallbackFactory.class,
        contextId = "contentCourse"
)
public interface ContentClient {
    @GetMapping("/teachplan/{teachplanId}")
    TeachPlanOfFeignDTO getTeachPlanById(@PathVariable("teachplanId") Long teachplanId);
}
